package com.kaili.pojo.dto.notice;

import com.kaili.common.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by renzhikun on 18-11-29.
 */
@Data
public class NoticeQueryDTO extends PageRequest{

    @Pattern(regexp = "^[A-Za-z0-9]{0,30}$",message = "运单应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("运单号")
    private String ewbNo;

    @ApiModelProperty("网点")
    private Integer siteId;

    @ApiModelProperty("发/收货人")
    private Integer customerId;

    @NotNull(message = "通知状态不能为空")
    @ApiModelProperty("通知状态")
    private String status;
}
